﻿@model Weibo4Sharp.Model.WeiboStatus

@{
    var isDetail = (bool?)ViewData["isDetail"] ?? false;
    
    if(!string.IsNullOrEmpty(Model.ThumbnailPic))
    {
        <div class="@Html.Raw(isDetail ? "weibo-pic-thumb" : "weibo-pic")">
            <a href="@Model.OriginalPic" target="_blank">
                
                @if (isDetail)
                {
                    <img src="@Model.MiddlePic" thumbsrc="@Model.ThumbnailPic" middlesrc="@Model.MiddlePic" originsrc="@Model.OriginalPic"/>
                }
                else
                {
                    <img etype="weibo-pic" src="@Model.ThumbnailPic" thumbsrc="@Model.ThumbnailPic" middlesrc="@Model.MiddlePic" originsrc="@Model.OriginalPic"/>
                }
            </a>
        </div>       
    }
 
}
